<?php
class Model_District
{
	private $_id;
	private $_name;

	public function getId(){
		return $this->_id;
	}
	public function getName(){
		return $this->_name;
	}
	
	public function setName($value){
		$this->_name=$value;
		return $this;
	}
	public function setId($value){
		$this->_id=$value;
		return $this;
	}
	
	public function getTotalLocations(){
		$locMapper=new Model_LocationMapper();
		$value=$locMapper->getTotalLocationsByDistrict($this->_id);
		return $value;
	}
	public function getTotalDelivery(){
		$delMapper=new Model_DeliveryMapper();
		$value=$delMapper->getTotalLocationsByDelivery($this->_id);
		return $value;
	}
}